import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login.vue'
import Home from '@/components/Home.vue'
import Welcome from '@/components/Welcome.vue'
import companyuserList from '@/components/companyuserList.vue'
import companyuserAdd from '@/components/companyuserAdd.vue'
import companyuserModify from '@/components/companyuserModify.vue'
import userList from '@/components/userList.vue'
import userAdd from '@/components/userAdd.vue'
import userModify from '@/components/userModify.vue'
import customerAudit from '@/components/customerAudit.vue'
import paramList from '@/components/paramList.vue'
import paramAdd from '@/components/paramAdd.vue'
import paramModify from '@/components/paramModify.vue'
import companyAudit from '@/components/companyAudit.vue'
import caseAudit from '@/components/caseAudit.vue'
import designAudit from '@/components/designAudit.vue'
import adList from '@/components/adList.vue'
import adAdd from '@/components/adAdd.vue'
import adModify from '@/components/adModify.vue'
import customerList from '@/components/customerList.vue'
import LogList from '@/components/LogList.vue'
import caseDetail from '@/components/caseDetail.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/login',
      component: Login,
      name: 'login'
    },
    {
      path: '/',
      name: 'Home',
      component: Home,
      children: [
        { path: '/Welcome', name: 'Welcome', component: Welcome },
        { path: '/customerList', name: 'customerList', component: customerList },
        { path: '/customerAudit', name: 'customerAudit', component: customerAudit },
        { path: '/paramList', name: 'paramList', component: paramList },
        { path: '/paramAdd', name: 'paramAdd', component: paramAdd },
        { path: '/paramModify', name: 'paramModify', component: paramModify },
        { path: '/companyAudit', name: 'companyAudit', component: companyAudit },
        { path: '/caseAudit', name: 'caseAudit', component: caseAudit },
        { path: '/designAudit', name: 'designAudit', component: designAudit },
        { path: '/adList', name: 'adList', component: adList },
        { path: '/adAdd', name: 'adAdd', component: adAdd },
        { path: '/adModify', name: 'adModify', component: adModify },
        { path: '/companyuserList', name: 'companyuserList', component: companyuserList },
        { path: '/companyuserAdd', name: 'companyuserAdd', component: companyuserAdd },
        { path: '/companyuserModify', name: 'companyuserModify', component: companyuserModify },
        { path: '/userList', name: 'userList', component: userList },
        { path: '/userAdd', name: 'userAdd', component: userAdd },
        { path: '/userModify', name: 'userModify', component: userModify },
        { path: '/LogList', name: 'LogList', component: LogList },
        { path: '/caseDetail', name: 'caseDetail', component: caseDetail }
      ]
    }
  ]
})
